package com.skyeyemonitoring.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.skyeyemonitoring.R;
import com.skyeyemonitoring.entity.EntityQueryDete;

import java.util.List;

/**
 * 日志查询适配器
 * Created by ${QQZ} on 2017/5/23.
 */

public class AdapterQueryDate extends BaseQuickAdapter<EntityQueryDete, BaseViewHolder> {


    public AdapterQueryDate(@Nullable List<EntityQueryDete> data) {
        super(R.layout.item_query_date, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, EntityQueryDete item) {
        helper.setText(R.id.tv_item_query_date_gather_time,item.getGatherTime())
                .setText(R.id.tv_item_query_date_gather_incline,item.getIncline())
                .setText(R.id.tv_item_query_date_gather_shake,item.getShake());

    }
}
